1 /******************************************************************************* 2 * Copyright (c) 2000, 2012 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.swt.custom; 15 16 import org.eclipse.swt.graphics.*; 17 import org.eclipse.swt.widgets.*; 18 19 /** 20 * 21 */ 22 class StyledTextEvent extends Event { 23 // used by LineStyleEvent 24 int[] ranges; 25 StyleRange[] styles; 26 int alignment; 27 int indent; 28 int verticalIndent; 29 int wrapIndent; 30 boolean justify; 31 Bullet bullet; 32 int bulletIndex; 33 int[] tabStops; 34 // used by LineBackgroundEvent 35 Color lineBackground; 36 // used by TextChangedEvent 37 int replaceCharCount; 38 int newCharCount; 39 int replaceLineCount; 40 int newLineCount; 41 // used by PaintObjectEvent 42 int x; 43 int y; 44 int ascent; 45 int descent; 46 StyleRange style; 47 StyledTextEvent(StyledTextContent content)48StyledTextEvent (StyledTextContent content) { 49 super(); 50 data = content; 51 } 52 } 53 54 55